//
//  StyListTableViewCell.m
//  PerfectWorld
//
//  Created by dllo on 16/9/1.
//  Copyright © 2016年 LST. All rights reserved.
//

#import "StyListTableViewCell.h"
#import "Professionals.h"
#import "ProUserimage.h"
#import "UIImageView+WebCache.h"
#import "HeadImage.h"
@implementation StyListTableViewCell

- (void)setProfessionals:(Professionals *)professionals {
    _professionals = professionals;
    _nameLabel.text = professionals.userName;
    _addressLabel.text = [NSString stringWithFormat:@"%@ %@", professionals.province, professionals.city];
    NSNumber *num = @(professionals.projectNum);
    NSString *str = [num description];
    _detailsLabel.text = [NSString stringWithFormat:@"预约:%@ | 活跃:%@ | 案例:%@", professionals.serviceNum, professionals.rank, str];
    [_titleImageView sd_setImageWithURL:[NSURL URLWithString:[NSString stringWithString:professionals.userImage.large]] placeholderImage:nil];
}
- (void)layoutSubviews {
    [super layoutSubviews];
    [self layoutIfNeeded];
    _titleImageView.layer.cornerRadius = 40;
    _titleImageView.layer.masksToBounds = YES;
}
- (void)awakeFromNib {
    [super awakeFromNib];
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
